/*
 * MIT License
 *
 * Copyright (c) 2023 北京凯特伟业科技有限公司
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.je.message.vo;

import java.util.Date;

/**
 * <pre>
 *     证照操作记录
 * </pre>
 *
 * <pre>
 * @author mazq
 * 修改记录
 *    修改后版本:     修改人：  修改日期: 2020/08/15 10:21  修改内容:
 * </pre>
 */
public class LicenseLogModel {

    /**
     * 日志SEQ
     */
    private String seq;

    /**
     * 痕迹表SEQ
     */
    private String handleSeq;

    /**
     * 查验证照用户账号
     */
    private String userCode;

    /**
     * 查验证照编码
     */
    private String certCode;

    /**
     * 查验证照时间
     */
    private Date certTime;

    /**
     * 办件流水号
     */
    private String controlSeq;;

    public LicenseLogModel() {
    }

    public LicenseLogModel(String seq) {
        this.seq = seq;
    }

    public LicenseLogModel(String seq, String handleSeq, String userCode, String certCode, Date certTime, String controlSeq) {
        this.seq = seq;
        this.handleSeq = handleSeq;
        this.userCode = userCode;
        this.certCode = certCode;
        this.certTime = certTime;
        this.controlSeq = controlSeq;
    }

    private LicenseLogModel(Builder builder){
        this.seq = builder.seq;
        this.handleSeq = builder.handleSeq;
        this.userCode = builder.userCode;
        this.certCode = builder.certCode;
        this.certTime = builder.certTime;
        this.controlSeq = builder.controlSeq;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getHandleSeq() {
        return handleSeq;
    }

    public void setHandleSeq(String handleSeq) {
        this.handleSeq = handleSeq;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Date getCertTime() {
        return certTime;
    }

    public void setCertTime(Date certTime) {
        this.certTime = certTime;
    }

    public String getCertCode() {
        return certCode;
    }

    public void setCertCode(String certCode) {
        this.certCode = certCode;
    }

    public String getControlSeq() {
        return controlSeq;
    }

    public void setControlSeq(String controlSeq) {
        this.controlSeq = controlSeq;
    }

    public static class Builder {
        private String seq;

        private String handleSeq;

        private String userCode;

        private String certCode;

        private Date certTime;

        private String controlSeq;

        public Builder(String seq){
            this.seq = seq;
        }

        public Builder setSeq(String seq) {
            this.seq = seq;
            return this;
        }

        public Builder setHandleSeq(String handleSeq) {
            this.handleSeq = handleSeq;
            return this;
        }

        public Builder setUserCode(String userCode) {
            this.userCode = userCode;
            return this;
        }

        public Builder setCertCode(String certCode){
            this.certCode = certCode;
            return this;
        }

        public Builder setCertTime(Date certTime) {
            this.certTime = certTime;
            return this;
        }

        public Builder setControlSeq(String controlSeq){
            this.controlSeq = controlSeq;
            return this;
        }

        public LicenseLogModel build(){
            return new LicenseLogModel(this);
        }
    }

    @Override
    public String toString() {
        return "LicenseLogModel{" +
                "seq='" + seq + '\'' +
                ", handleSeq='" + handleSeq + '\'' +
                ", userCode='" + userCode + '\'' +
                ", certCode='" + certCode + '\'' +
                ", certTime=" + certTime +
                ", controlSeq='" + controlSeq + '\'' +
                '}';
    }


}